WidgetBundleUtils
Type
module
Summary
Shared module for several widgets
Description
Shared module for several widgets
Children Properties
Handler
Name | Summary | Syntax |
---|---|---|
customCornerRadiusShape | Generates a rounded rectangle allowing to define the radius of each corner | customCornerRadiusShape(<pRoundRadius>,<pRect>) |
toPoint | Convert a string or list to point | toPoint(<pValue>) |
getBoolean | Get any value as boolean | getBoolean(<pValue>) |
drawPathInRect | Fills a path | drawPathInRect(<pPath>,<pRect>,<pCanvas>,<pSquareBox>,<pMargin>) |
getAsNumber | Get any value as number | getAsNumber(<pValue>,<pDefault>) |
applyPaintFromDataValue | Extract a paint from a data element | applyPaintFromDataValue(<pDataValue>,<pContext>) |
loadProp | A helper handler to use in OnLoad handler | loadProp(<pPropName>,<pVariable>,<pPropArray>,<pType>) |
resizeTransformImage | Scale down an image | resizeTransformImage(<pImage>,<pRect>,<pItemArray>) |
arrayMerge | Merge pSource into pDestination array | arrayMerge(<pSource>,<pDestination>) |
fitPathToRect | Scales and translates a path to fit within a rectangle | fitPathToRect(<pTargetRect>,<xPath>,<pKeepAspect>) |
colorNameToColor | Convert a color name string to a color type | colorNameToColor(<pValue>,<pDefault>) |
isValidStringColor | Validates if a given string can be converted to color | isValidStringColor(<pColor>) |
fitStringToWidth | Cuts a string to make it fit the given width | fitStringToWidth(<pString>,<pFont>,<pMaxWidth>,<pCutChars>) |
resizeRectForImg | Resize a rectangle to make an image to fit proportionally | resizeRectForImg(<pImage>,<pRect>,<pResizeType>) |
wrapTextInRect | Make a string 'multiline' | wrapTextInRect(<pTextBox>,<pText>,<pAlign>,<pCanvas>) |
getAsColor | Get any value as color | getAsColor(<pValue>,<pDefault>) |
fillTextInRect | Fills a text in a given rect without wrapping | fillTextInRect(<pLabel>,<pRect>,<pAlign>,<pMargin>,<pCanvas>) |
pointToString | Convert a Point to a x,y style string | pointToString(<pPoint>) |
rectangleToString | Converts a rectangle to a string list of items | rectangleToString(<pRect>) |
getAsString | Get any value as string | getAsString(<pValue>) |